const log4js = require("log4js");
log4js.configure({
    appenders: { render: { type: "file", filename: "render.log" } , upload: { type: "file", filename: "upload.log" } },
    categories: { default: { appenders: ["render","upload"] , level:'info'} }
});

const logger = log4js.getLogger("render");
logger.info("渲染日志.");

const uploadLogger = log4js.getLogger("upload");
uploadLogger.info("上传日志.");
uploadLogger.error()